﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using CMISLibrary.Entities;
using BCNPCObject.DB;

namespace BCNPCObject
{
    public class cls_D_CAP_DAP_Controller
    {
        #region   Atributes

        private DataSet CMIS_Header = new CMISOutputParameter();
        private DataSet ds = new DataSet();
        private DataTable dt = new DataTable();
        private D_CAP_DAP info;

        #endregion

        #region   Constructor

        public cls_D_CAP_DAP_Controller()
        {
            info = new D_CAP_DAP();
        }
        public cls_D_CAP_DAP_Controller(D_CAP_DAP Info)
        {
            this.info = Info;
        }

        #endregion

        #region   Properties

        public D_CAP_DAP pInfor
        {
            get { return info; }
            set { info = value; }
        }

        #endregion   

        #region METHOD DUNGNT PC1
        public IEnumerable<D_CAP_DAP> Get_D_CAP_DAP()
        {
            try
            {
                var q = from p in CMIS2.DB.D_CAP_DAP  select p;
                return q;
            }
            catch
            {
                CMIS2.ResetDB(); return null;
            }
        }
        # endregion
    }
}
